import request from '@/utils/request'


//保存角色信息
export function saveRoleInfo(data){
    return request({
        url:'/auth/Role/save',
        method:'post',
        data
    })
}
//获取角色信息
export function getRoleInfo(id){
    return request({
        url:'/auth/role/info?id='+id,
        method:'get'
    })
}
//删除角色信息
export function deleteRoleInfo(id){
    return request({
        url:'/auth/Role/delete?id='+id,
        method:'delete'
    })
}
//获取角色权限
export function getRolePermission(id){
    return request({
        url:'/auth/role/permissions?id='+id,
        method:'get'
    })
}
//角色授权
export function authoriza(data){
    return request({
        url:'/auth/Role/authoriza',
        method:'post',
        data
    })
}
//获取所有角色
export function getRoleDictionary(){
    return request({
        url:'/auth/role/dictionary',
        method:'get'
    })
}